/*
 This file '_functions' is part of Firebird Integrated Solution 1.0

 Copyright (c) 2014 Lincong

 Contact:  
        Email: lincong1987@gmail.com

        QQ: 159257119
 
 See Usage at http://www.jplatformx.com/firebird

 Create date: 2014-07-13 22:45
 */
.transition(@prop: all, @time: .5s) {
	-webkit-transition: @prop @time;
	-moz-transition: @prop @time;
	-ms-transition: @prop @time;
	-o-transition: @prop @time;
	transition: @prop @time;
}

.transform (@rotate: 90deg, @scale: 1, @skew: 1deg, @translate: 10px) {
	-webkit-transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
	-moz-transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
	-o-transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
	-ms-transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
	transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
}

.border-radius-custom (@topleft: 5px, @topright: 5px, @bottomleft: 5px, @bottomright: 5px) {
	-webkit-border-radius: @topleft @topright @bottomright @bottomleft;
	-moz-border-radius: @topleft @topright @bottomright @bottomleft;
	border-radius: @topleft @topright @bottomright @bottomleft;
}

.text-ellipsis() {
	overflow: hidden;
	white-space: nowrap;
	-webkit-text-overflow: ellipsis;
	-khtml-text-overflow: ellipsis;
	-icab-text-overflow: ellipsis;
	-moz-text-overflow: ellipsis;
	-o-text-overflow: ellipsis;
	text-overflow: ellipsis;
}

.zoom:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}

.zoom {
	clear: both;
	zoom: 1; /* for IE6 IE7 */
}

.opacity (@opacity : 0.9) {
	@aaa: 100;
	@sss: (@opacity * @aaa);
	@opacityPercentage: ceil(@sss);

	opacity: @opacity;
	-ms-filter: e("progid:DXImageTransform.Microsoft.Alpha(opacity=@{opacityPercentage})");
	filter: e("alpha(opacity = @{opacityPercentage})");
}